<p id="notice"><%= notice %></p>

<h2>  <%= @electrician.name %> </h2>
<input type='hidden' id="electrician_id" value="<%= @electrician.id %>">
<h3>  Current Balance : <%= @electrician.current_balance() %></h3>
<h3>  Opening Balance :<span id='initial_balance'> <%= @electrician.initial_balance %></span></h3>

<% @holder = @electrician%>
<% @credit_transactions=Transaction.find_all_by_giver_type_and_giver_id(@electrician.class.name,@electrician.id) %>
<% @debit_transactions=Transaction.find_all_by_receiver_type_and_receiver_id(@electrician.class.name, @electrician.id) %>
<%= render(:partial=>'transactions/form') %>
<script>
   setCreateTransactionType("Owner","1","Electrician",$('#electrician_id').val());
</script>
<%= render(:partial=>'transactions/list') %>
